<template>
  <div class="block">
    <el-timeline>
      <el-timeline-item v-for="(item,index) of timeline" :key="index" :timestamp="item.timestamp" placement="top">
        <el-card>
          <h4>{{ item.title }}</h4>
          <p>{{ item.content }}</p>
        </el-card>
      </el-timeline-item>
    </el-timeline>
  </div>
</template>

<script>
export default {
  data() {
    return {
      timeline: [
        {
          timestamp: '2019/4/20',
          title: '亚信科技',
          content: '负责开发工作'
        },
        {
          timestamp: '2019/4/21',
          title: '新开普软件',
          content: '主要负责软件测试'
        },
        {
          timestamp: '2019/4/22',
          title: 'AAA培训公司',
          content: '培训学习后端开发'
        },
        {
          timestamp: '2019/4/23',
          title: '返校',
          content: '返校完成毕设'
        }
      ]
    }
  }
}
</script>
